// JavaScript Document
var subOrderBut=document.getElementsByClassName("subOrder").item(0);
var bgFloorId=document.getElementsByClassName("bgFloor").item(0);
var popLayerId=document.getElementsByClassName("popLayer").item(0);
var subButId=document.getElementsByClassName("subBut").item(0);
var confirmDivId=document.getElementsByClassName("confirmDiv").item(0);
var cd_a=confirmDivId.getElementsByTagName("a");
function eject()
{
	subOrderBut.onclick=function()
	{
		bgFloorId.style.display="block";
		popLayerId.style.display="block";
		confirmDivId.style.display="none";
	}
	subButId.onclick=function()
	{
		popLayerId.style.display="none";
		confirmDivId.style.display="block";
	}
	for(var i=0;i<cd_a.length;i++)
	{
		cd_a.item(i).onclick=function()
		{
			bgFloorId.style.display="none";
		}
	}
}
eject();